package com.urfresh.sp.flume.dto.v2;

/**
 * Created by urfresh.mark on 2016/10/9.
 */

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;

public class PositionClick extends AppBaseInfo{
    @JSONField(ordinal = 6)
    @ApiModelProperty(value = "一级类目", required = true)
    String firstClass;

    @JSONField(ordinal = 7)
    @ApiModelProperty(value = "二级类目", required = true)
    String secondClass;

    @JSONField(ordinal = 8)
    @ApiModelProperty(value = "频道名称", required = true)
    String channel;

    @JSONField(ordinal = 9)
    @ApiModelProperty(value = "坑位编号", required = true)
    int itemSeq;

    @JSONField(ordinal = 10)
    @ApiModelProperty(value = "商品编号", required = true)
    String productId;

    public PositionClick() {
    }

    public PositionClick(String firstClass, String secondClass, String channel, int itemSeq, String productId) {
        this.firstClass = firstClass;
        this.secondClass = secondClass;
        this.channel = channel;
        this.itemSeq = itemSeq;
        this.productId = productId;
    }

    public String getFirstClass() {
        return firstClass;
    }

    public void setFirstClass(String firstClass) {
        this.firstClass = firstClass;
    }

    public String getSecondClass() {
        return secondClass;
    }

    public void setSecondClass(String secondClass) {
        this.secondClass = secondClass;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public int getItemSeq() {
        return itemSeq;
    }

    public void setItemSeq(int itemSeq) {
        this.itemSeq = itemSeq;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public PositionClick buildPositionClick(String firstClass, String secondClass, String channel, int itemOrder, String product) {
        return new PositionClick(firstClass, secondClass, channel, itemOrder, product);
    }
}
